#ifndef _GESTIONTHREAD
#define _GESTIONTHREAD
#include <pthread.h>
#include <signal.h>

#include "gestionFichier.h"
#include "gestionFile.h"

extern volatile sig_atomic_t STOP;

struct s_gThread
{
  gFile gFile;
  gFichier gFichier;
  char * pathFile;
};

typedef struct s_gThread gThread;

void *threadAttenteSocket(gThread * gThread);

void initialiseGThread(gThread * gThread, int maxSock, char * _pathFile);

void testamentGThread(gThread * gThread);

#endif
